<template>
  <a-form :form="form" layout="vertical" class="rx-a-form-vertical">
    <a-form-item   :label="i18n('form.maxCharNum','最大字符数')">
      <a-input-number v-decorator="['maxNote',{initialValue:100}]" />
    </a-form-item>

  </a-form>
</template>

<script>
    export default {
      name: "renderConfig_text",
      props:["layerid","destroy"],
      data(){
        return {
            labelCol: {span: 6},
            wrapperCol: {span: 18},
            labelCol1: {span: 3},
            wrapperCol1: {span: 19},
            form: this.$form.createForm(this),
            mdl: {}
        }
      },
      methods:{
          i18n(name,text,key){
              return this.$ti18(name,text,"formCellRender",key);
          },
        setData(data,fieldDts){
          this.mdl=data;
          this.form.setFieldsValue(this.mdl);
        },
        validate(callback){
          var self=this;
          this.form.validateFields((err, values) => {
            if(err){
              return;
            }
            self.mdl=values;
            callback();
          });
        },
        getData(){
          return this.mdl;
        },
        changeData(e,field){
          this.mdl[field]=e.target.checked;
        }
      }
    }
</script>

<style scoped>

</style>